home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Testing & Debugging / General tools / Audit app & dcmd / Src / DisplayAudit.r < prev    next >
Encoding:
Text File  |  1993-09-17  |  8.4 KB  |  358 lines  |  [TEXT/KAHL]

  1. /*                                    DisplayAudit.r                                */
  2. /*
  3.  * Display Audit
  4.  * DisplayAudit.r
  5.  * Copyright © 1993 Apple Computer Inc. All rights reserved.
  6.  * These are the resource definitions for Display Audit. This file can be compiled
  7.  * by MPW Rez and by Think C 6.0 Rez.
  8.  */
  9. #include "Types.r"
  10. #include "SysTypes.r"
  11. #include "DisplayAudit.h"
  12. #ifndef THINK_Rez
  13. include "::Display Audit Icons.rsrc";
  14. #endif
  15.  
  16. type 'MAM1' as 'STR ';
  17. resource 'MAM1' (0, "Owner Resource", purgeable) {
  18.     "Audit Display Application."
  19.     " Copyright © 1992-93 Apple Computer Inc. All Rights Reserved."
  20. };
  21.  
  22. resource 'vers' (1) {
  23.     0x1,
  24.     0x0,
  25.     release,
  26.     0x1,
  27.     verUS,
  28.     "1.0.1",
  29.     "1.0.1 © 1993 Apple Computer Inc. All Rights Reserved"
  30. };
  31.  
  32. resource 'vers' (2) {
  33.     0x1,
  34.     0x0,
  35.     release,
  36.     0x1,
  37.     verUS,
  38.     "1.0.1",
  39.     "For AOCE 1.0"
  40. };
  41.  
  42. resource 'STR#' (STRN_Messages, "Error messages", purgeable) {
  43.     {
  44.         "Can't initialize application - fatal",
  45.         "No memory",
  46.         "Can't create audit record - fatal",
  47.         "Can't create display window",
  48.         /*
  49.          * Preference file errors
  50.          */
  51.         "Wrong system version: cannot create preference file",
  52.         "Can't find Preference folder in System folder",
  53.         "Can't find Preference file",
  54.         "Can't open Preference file",
  55.         "Can't create Preference file",
  56.         "Can't write Preference information",
  57.         "Can't read Preference information",
  58.         /*
  59.          * Log file errors
  60.          */
  61.         "Can't create output file",
  62.         "Can't write ouput file",
  63.         "Can't close output file"
  64.     }
  65. };
  66.  
  67. resource 'STR#' (STRN_Strings, "Random strings", purgeable) {
  68.     {
  69.         "DisplayAudit Preferences",
  70.     }
  71. };
  72.  
  73. resource 'STR#' (STRN_EditMenu, "Edit Menu Strings", purgeable) {
  74.     {
  75.         "Undo",
  76.         "Undo Typing",
  77.         "Undo Cut",
  78.         "Undo Copy",
  79.         "Undo Paste",
  80.         "Undo Clear",
  81.         "Redo Typing",
  82.         "Redo Cut",
  83.         "Redo Copy",
  84.         "Redo Paste",
  85.         "Redo Clear",
  86.     }
  87. };
  88. resource 'STR ' (STR_FinderString, "Finder Info for Pref File", purgeable) {
  89.         "This document describes user preferences for the DisplayAudit"
  90.         " application. It cannot be opened or printed."
  91.         " To be effective, this document must be stored in the Preferences"
  92.         " folder inside the System Folder."
  93. };
  94.  
  95. resource 'MBAR' (MBAR_MenuBar) {
  96.     {
  97.         MENU_Apple,
  98.         MENU_File,
  99.         MENU_Edit
  100.     }
  101. };
  102.  
  103. resource 'MENU' (MENU_Apple, "Apple Menu") {
  104.     MENU_Apple,
  105.     textMenuProc,
  106.     0x7FFFFFFD,
  107.     enabled,
  108.     apple,
  109.     {
  110.         "About DisplayAudit…", noIcon, noKey, noMark, plain,
  111.         "-", noIcon, noKey, noMark, plain
  112.     }
  113. };
  114.  
  115. resource 'MENU' (MENU_File, "File Menu") {
  116.     MENU_File,
  117.     textMenuProc,
  118.     0x0,
  119.     enabled,
  120.     "File",
  121.     {
  122.         "New Display Window",    noIcon, "N",    noMark, plain,
  123.         "Close Window",            noIcon, "W",    noMark, plain,
  124.         "-",                    noIcon, noKey,    noMark, plain,
  125.         "Save As…",                noIcon, "S",    noMark, plain,
  126.         "Close File",            noIcon, noKey,    noMark, plain,
  127.         "-",                    noIcon, noKey,    noMark, plain,
  128.         "Page Setup…",            noIcon, noKey,    noMark, plain,
  129.         "Print…",                noIcon, "P",    noMark, plain,
  130.         "-",                    noIcon, noKey,    noMark, plain,
  131.         "Timestamp Log",        noIcon, "T",    noMark, plain,
  132.         "-",                    noIcon, noKey,    noMark, plain,
  133.         "Quit",                    noIcon, "Q",     noMark, plain
  134.     }
  135. };
  136.  
  137. resource 'MENU' (MENU_Edit, "Edit Menu") {
  138.     MENU_Edit,
  139.     textMenuProc,
  140.     0x0,
  141.     enabled,
  142.     "Edit",
  143.     {    /* array: 6 elements */
  144.         "Undo", noIcon, "Z", noMark, plain,
  145.         "-", noIcon, noKey, noMark, plain,
  146.         "Cut", noIcon, "X", noMark, plain,
  147.         "Copy", noIcon, "C", noMark, plain,
  148.         "Paste", noIcon, "V", noMark, plain,
  149.         "Clear", noIcon, noKey, noMark, plain
  150.     }
  151. };
  152.     
  153. resource 'WIND' (WIND_Document, "Main Window") {
  154.         { 0, 0, kMinWindowHeight, kMinWindowWidth },
  155.         zoomDocProc,
  156.         invisible,
  157.         goAway,
  158.         0x0,
  159.         "Display Audit - XXXX"    /* XXXX will be replaced by the Audit ID        */
  160. };
  161.  
  162. resource 'DLOG' (DLOG_SFPutFile, "Audit File Dialog", purgeable) {
  163.         {   0,   0, 344, 312 },
  164.         dBoxProc,
  165.         invisible,
  166.         noGoAway,
  167.         0,
  168.         DLOG_SFPutFile,
  169.         ""
  170. };
  171.  
  172. resource 'DITL' (DLOG_SFPutFile, "Audit File Dialog", preload, purgeable) {
  173.     {
  174.         { 157, 218, 177, 298 },    Button        { enabled, "Save"                    },
  175.         { 128, 218, 148, 298 },    Button        { enabled, "Don’t Save"                },
  176.         { 136,  14, 152, 197 },    StaticText    { disabled, "Save As:"                },
  177.         {  29, 200,  49, 302 }, UserItem    { enabled                            },
  178.         {  56, 218,  74, 298 }, Button        { enabled, "Eject"                    },
  179.         {  82, 218, 100, 298 }, Button        { enabled, "Drive"                    },
  180.         { 157,  17, 173, 194 }, EditText    { enabled, ""                        },
  181.         {  29,  14, 127, 197 }, UserItem    { enabled                            },
  182.         /*
  183.          * Added items
  184.          */
  185.         { 192,  17, 208,  69 }, EditText    { enabled, ""    /* Selector */        },
  186.         { 192,  74, 208, 176 },    StaticText    { disabled, "Audit Selector"        },
  187.         { 218,  17, 234,  69 }, EditText    { enabled, ""                        },
  188.         { 218,  74, 234, 186 }, StaticText    { disabled, "Audit Records"            },
  189.         { 244,  17, 260,  69 }, EditText    { enabled, ""                        },
  190.         { 244,  74, 260, 186 }, StaticText    { disabled, "Display Lines"            },
  191.         { 270,  15, 288, 194 }, CheckBox    { enabled, "Enable Audit Logging"    },
  192. #define kFontPopupRect        { 294,  15, 313, 216 }
  193.         kFontPopupRect,            Control        { enabled, CNTL_FontPopup            },
  194. #define kFontSizePopupRect    { 316,  15, 337, 188 }
  195.         kFontSizePopupRect,        Control        { enabled, CNTL_SizePopup            },
  196.     }
  197. };
  198.  
  199. resource 'CNTL' (CNTL_FontPopup, preload, purgeable) {
  200.     kFontPopupRect,                        /* Must match DITL above            */
  201.     popupTitleLeftJust,                    /* Left-justify                        */
  202.     visible,
  203.     41,                                    /* Title width                        */
  204.     MENU_Font,                            /* Font menu                        */
  205.     popupMenuCDEFProc,                    /* It's a popup menu                */
  206.     0,                                    /* refCon, unused                    */
  207.     "Fonts:"                            /* Title                            */
  208. };
  209.  
  210. resource 'MENU' (MENU_Font, "Font Menu") {
  211.     MENU_Font,
  212.     textMenuProc,
  213.     allEnabled,
  214.     enabled,
  215.     "Fonts",
  216.     { }
  217. };
  218.  
  219. resource 'CNTL' (CNTL_SizePopup, preload, purgeable) {
  220.     kFontSizePopupRect,                    /* Must match DITL above            */
  221.     popupTitleLeftJust | popupFixedWidth, /* Left-justify                    */
  222.     visible,
  223.     41,                                    /* Title width                        */
  224.     MENU_FontSize,                        /* Font Size menu                    */
  225.     popupMenuCDEFProc,                    /* It's a popup menu                */
  226.     0,                                    /* refCon, unused                    */
  227.     "Size:"                                /* Title                            */
  228. };
  229.  
  230. resource 'MENU' (MENU_FontSize, "Font Size Menu") {
  231.     MENU_FontSize,
  232.     textMenuProc,
  233.     allEnabled,
  234.     enabled,
  235.     "Size",
  236.     {
  237.         "9", noIcon, noKey, noMark, plain,
  238.         "10", noIcon, noKey, noMark, plain,
  239.         "12", noIcon, noKey, noMark, plain,
  240.         "14", noIcon, noKey, noMark, plain,
  241.         "16", noIcon, noKey, noMark, plain,
  242.         "18", noIcon, noKey, noMark, plain,
  243.         "24", noIcon, noKey, noMark, plain,
  244.         "36", noIcon, noKey, noMark, plain,
  245.     }
  246. };
  247.  
  248. /*
  249.  * If we make this 20 pixels high, it lines up nicely with the tag text item.
  250.  */
  251. resource 'CNTL' (CNTL_TagButton, "TimeStamp button") {
  252.     { 4, 4, 24, 40 },                    /* Display rectangle                */
  253.     0,                                    /* Value                            */
  254.     visible,                            /* Initially visible                */
  255.     1, 0,                                /* Max, min                            */
  256.     pushButProcUseWFont,                /* It's a button                    */
  257.     0,                                    /* No refCon                        */
  258.     "Note"                                /* Button label                        */
  259. };
  260.  
  261. resource 'DLOG' (DLOG_About, "About Display Audit") {
  262.     {100, 80, 230, 422},
  263.     dBoxProc,
  264.     invisible,
  265.     noGoAway,
  266.     0x0,
  267.     DLOG_About,
  268.     ""
  269. };
  270.  
  271. resource 'DITL' (DLOG_About, "About Display Audit") {
  272.     {
  273.         {100, 260, 120, 322}, Button        { enabled,    "OK"                    },
  274.         { 10,  10,  96, 324}, StaticText    { disabled,
  275.             "Display Audit monitors AuditLog records.\n"
  276.             "Written by Martin Minow, Developer Technical Support.\n"
  277.             "Copyright © 1992-93 Apple Computer Inc."
  278.             " All rights reserved."
  279.         },
  280.     }
  281. };
  282.  
  283. resource 'ALRT' (ALRT_NonFatal, "System Error", purgeable) {
  284.     {100, 80, 230, 422},
  285.     ALRT_NonFatal,
  286.     {
  287.         OK, visible, silent,
  288.         OK, visible, silent,
  289.         OK, visible, silent,
  290.         OK, visible, silent
  291.     }
  292. };
  293.  
  294. resource 'DITL' (ALRT_NonFatal, "System Error", purgeable) {
  295.     {
  296.         {100, 220, 120, 322}, Button        { enabled,    "Continue"                },
  297.         { 10, 110,  96, 324}, StaticText    { disabled, "System Error ^0. ^1"    },
  298.         { 47,  20,  64,  80}, StaticText    { disabled, "Error"                    }
  299.     }
  300. };
  301.  
  302. resource 'ALRT' (ALRT_Fatal, "Fatal Error", purgeable) {
  303.     {100, 80, 230, 422},
  304.     ALRT_Fatal,
  305.     {
  306.         OK, visible, silent,
  307.         OK, visible, silent,
  308.         OK, visible, silent,
  309.         OK, visible, silent
  310.     }
  311. };
  312.  
  313. resource 'DITL' (ALRT_Fatal, "Fatal Error", purgeable) {
  314.     {
  315.         {100, 240, 120, 322}, Button        { enabled,    "Exit"                    },
  316.         { 10, 110,  96, 324}, StaticText    { disabled,
  317.                                         "System Error (cannot recover) ^0. ^1"    },
  318.         { 47,  20,  64,  80}, StaticText    { disabled, "Error"                    }
  319.     }
  320. };
  321.  
  322. resource 'SIZE' (-1) {
  323.     reserved,
  324.     acceptSuspendResumeEvents,
  325.     reserved,
  326.     canBackground,
  327.     multiFinderAware,
  328.     backgroundAndForeground,
  329.     dontGetFrontClicks,
  330.     ignoreChildDiedEvents,
  331.     is32BitCompatible,
  332.     notHighLevelEventAware,
  333.     onlyLocalHLEvents,
  334.     notStationeryAware,
  335.     dontUseTextEditServices,
  336.     reserved,
  337.     reserved,
  338.     reserved,
  339.     393216,
  340.     393216
  341. };
  342.  
  343. resource 'BNDL' (128) {
  344.     'MAM1',
  345.     0,
  346.     {
  347.         'FREF',    { 0, 128 },
  348.         'ICN#',    { 0, 128 }
  349.     }
  350. };
  351.  
  352. resource 'FREF' (128) {
  353.     'APPL',
  354.     0,
  355.     ""
  356. };
  357.  
  358.